package com.soft.springhrms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.soft.springhrms.pojo.Attendance;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soft.springhrms.vo.AttendanceVO;
import com.soft.springhrms.vo.ResultVO;

import java.util.Map;

/**
 * @author DELL
 * @description 针对表【attendance】的数据库操作Service
 * @createDate 2024-11-16 18:48:17
 */
public interface AttendanceService extends IService<Attendance> {

    ResultVO clockInRequest();


    ResultVO clockOutRequest();

    IPage<AttendanceVO> getAttendanceCount(int page, int size);

    ResultVO getAbsenceCount(Integer employeeId);

    Integer changeEmployeeAttendanceStatus(String clockTime, Integer id, String attendanceStatus);

    Map<String, Object> getUserAttendanceRecords(Integer employeeId, int page, int size);

    int clockIn(Integer attendanceId);

    ResultVO getAttendanceEcharts();
}
